<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TESTER</title>
<script type="text/javascript" src="/js/jquery-1.11.3.min.js"></script>
</head>
<body>

<h1>查询物流情况</h1>
<h2>快递鸟查询</h2>
<form name="form" method="post" onsubmit="javascript:return go()">
签名：<input name="sign" id="sign" value="" />  <br> 
快递接口：<input type="radio" name="kd" id="kd1" class="kd" value="kdniao" checked /> <label for="kd1">快递鸟</label>　
		<input type="radio" name="kd" id="kd2" class="kd" value="ickd" /> <label for="kd2">爱查快递</label> <font color="gray">(这个参数不用传输)</font><br> 
物流公司spell_name：<select name="spell_name" id="spell_name"></select> <br> 
物流单号mail_no：<input name="mail_no" id="mail_no" value="" /> <br> 
<input type=submit value=submit />
</form>
<script>
function go(){
	location.href = "/api.php?app=other&act="+$('.kd:checked').val()+"&spell_name="+$('#spell_name').val()+"&mail_no="+$('#mail_no').val();
	return false;
}
function changeSelect(){
	var html = '';
	if ($('.kd:checked').val()=='kdniao') {
		html = '<option value="EMS">EMS快递</option>\
			<option value="SF">顺丰快递</option>\
			<option value="STO">申通快递</option>\
			<option value="YTO">圆通快递</option>\
			<option value="YD">韵达快递</option>\
			<option value="HTKY">汇通快递</option>\
			<option value="HHTT">天天快递</option>\
			<option value="ZTO">中通快递</option>\
			<option value="ZJS">宅急送快递</option>\
			<option value="YZPY">中国邮政</option>\
			<option value="QFKD">全峰快递</option>\
			<option value="GTO">国通快递</option>\
			<option value="JD">京东快递</option>\
			<option value="LB">龙邦快递</option>\
			<option value="DBL">德邦物流</option>\
			<option value="RFD">如风达快递</option>\
			<option value="QRT">全日通快递</option>\
			<option value="JJKY">佳吉快运</option>\
			<option value="DHL">DHL快递</option>';
	} else {
		html = '<option value="ems">EMS快递</option>\
			<option value="shunfeng">顺丰快递</option>\
			<option value="shentong">申通快递</option>\
			<option value="yuantong">圆通快递</option>\
			<option value="yunda">韵达快递</option>\
			<option value="huitong">汇通快递</option>\
			<option value="tiantian">天天快递</option>\
			<option value="zhongtong">中通快递</option>\
			<option value="zhaijisong">宅急送快递</option>\
			<option value="pingyou">中国邮政</option>\
			<option value="quanfeng">全峰快递</option>\
			<option value="guotong">国通快递</option>\
			<option value="jingdong">京东快递</option>\
			<option value="ririshun">日日顺物流</option>\
			<option value="longbang">龙邦快递</option>\
			<option value="debang">德邦物流</option>\
			<option value="rufeng">如风达快递</option>\
			<option value="quanritong">全日通快递</option>\
			<option value="jiaji">佳吉快运</option>\
			<option value="dhl">DHL快递</option>';
	}
	$('#spell_name').html(html);
}
changeSelect();
$('.kd').change(changeSelect);
</script>
</body>
</html>
